<template>
  <!-- 拜访详情 -->
  <div class="client">
    <div class="header">
      <div class="header_t">
        <van-icon name="arrow-left" @click="leftClick" />
        <span>拜访详情</span>
        <van-icon name="wap-home-o" @click="indexClick" />
      </div>
      <div class="name">
        <img src="../assets/头像.png" alt="" />
        <div class="center">
          <p>{{ seeInfo.custName }}</p>
          <p>录入人：<span>李大雷</span></p>
        </div>
      </div>
      <div class="header_b">
        <img src="../assets/基本信息.png" alt="" />
        <span>基本信息</span>
      </div>
    </div>
    <div class="content">
      <ul>
        <li>
          拜访标题<span>{{ seeInfo.visitTitle }}</span>
        </li>
        <li>
          拜访时间<span>{{ seeInfo.visitTime }}</span>
        </li>
        <li>
          拜访地址<span>{{ seeInfo.visitAddress }}</span>
        </li>
        <li>
          拜访原因<span>{{ seeInfo.visitReason }}</span>
        </li>
        <li>
          拜访情况<span>{{ seeInfo.visitSituation }}</span>
        </li>
        <li>
          <div class="active">竞争信息收集情况</div>
          <span>{{ seeInfo.collectSituation }}</span>
        </li>
        <li>
          创建时间<span>{{ seeInfo.createTime }}</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import Header from "../components/Header";
import { GetSeeDetails } from "../raxios/api";
export default {
  data() {
    return {
      title: "拜访详情",
      seeInfo: {},
    };
  },
  methods: {
    leftClick() {
      this.$router.go(-1);
    },
    indexClick() {
      this.$router.push("/home");
    },
  },
  components: {
    Header,
  },
  created() {
    GetSeeDetails(this.$route.query.id).then((res) => {
      if (res.errCode == 0) {
        // console.log(res.data);
        this.seeInfo = res.data;
      }
    });
  },
};
</script>
 
<style  lang="less" scoped>
.client {
  //   position: relative;
      width: 100%;
    height: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    overflow:scroll;
    background-color:#efefef;
    z-index: 99;
  .header {
    height: 1.7rem;
    background-color: #003399;
    padding: 0.1rem;
    .header_t {
      display: flex;
      justify-content: space-between;
      .van-icon {
        font-size: 0.28rem;
        color: #fff;
      }
      span {
        font-size: 0.18rem;
        margin-top: 0.1rem;
        color: #fff;
      }
    }
    .name {
      display: flex;
      img {
        width: 0.7rem;
        height: 0.7rem;
        margin: 0.2rem 0.1rem 0.1rem 0.2rem;
      }
      .center {
        margin-top: 0.35rem;
        color: #fff;
        p {
          &:nth-child(1) {
            font-size: 0.18rem;
            margin-bottom: 0.1rem;
          }
        }
      }
    }
    .header_b {
      width: 96%;
      margin-left: 2%;
      height: 0.52rem;
      line-height: 0.52rem;
      background-color: #fff;
      border-bottom: 1px dashed #ccc;
      border-radius: 0.1rem 0.1rem 0 0;
      z-index: 99;
      box-sizing: border-box;
      img {
        width: 0.2rem;
        margin: 0 0.1rem 0 0.2rem;
        vertical-align: middle;
      }
      span {
        font-size: 0.16rem;
      }
    }
  }
  .content {
    padding: 0 0.1rem 0.1rem 0.1rem;

    ul {
      width: 96%;
      margin-left: 2%;
      box-sizing: border-box;
      height: 4.6rem;
      background-color: #fff;
    }

    li {
      display: flex;
      padding: 0.1rem 0.1rem;
      color: #b3b3b3;
      span {
        color: #3e3e3e;
        margin-left: 0.1rem;
        font-size: 0.16rem;
      }
      .active {
        width: 0.6rem;
        span {
          margin-top: 0.1rem;
        }
      }
    }
  }
}
</style>